  
Intel(R) C++ Compiler for Itanium(TM)-based applications,
Version 5.0.1 Release Notes
---------------------------------------------------

Overview
--------
	The Intel C++ Compiler for Itanium(TM)-based applications, 
Version 5.0.1, is a compiler for the Intel Itanium(TM) Architecture 
running Microsoft* Windows* XP, 64-bit edition. 

Please refer to the "Intel C++ Compiler 5.0.1 Release Notes" for 
information on the following topics: 
	. System requirements 
	. Package contents 
	. Installation 
  	. Support information 

Additional information on this software as well as other Intel software 
performance products is available at http://www.intel.com/software/products/ 
  
New Functionality
-----------------
  pragma section: 
  --------------
  	Support for controlling placement of data in sdata 
	(access data using gp  relative) or data has been added. For example: 
    	To place in short data use: 
		#pragma section("xy",short,read)
		#define ALLOC_SECTION __declspec(allocate("xy"))
	 	extern ALLOC_SECTION int foo;
    		
		foo will be placed in sdata section. 

    	To place in regular data use 
		#pragma section("xy",read)
		#define ALLOC_SECTION __declspec(allocate("xy"))
		extern ALLOC_SECTION int foo;
    	
		foo will be place in data section

Known Limitations In Version 5.0.1
----------------------------------

Direct object generation:            
-------------------------
The latest compiler supports direct object generation without going through the
assembler. However when command line switches -Zi or -Zl or -Z7 is used 
the compiler uses Intel's Itanium(TM) assembler to generate the object.
In case you find problems with the direct object generation a workaround
is to add -Quse_asm to the ecl.cfg config file.

Default section for the data types:
-----------------------------------
Data types of size 8 or less are defined in the  short data section. Data types 
of size greater than 8 bytes are defined  in the long data section. The section 
for the data types can be overridden using pragma section directive. 

Setjmp.h: 
---------
Default behavior of setjmp.h is to do fast longjmp() without unwinding the 
stack frame. To use the longjmp() which unwinds the stack 
use #include <setjmpex.h> instead #include <setjmp.h>. 

Type size_t definition: 
-----------------------
The type size_t is defined as unsigned __int64 in STDDEF.H.
This implies that a variable defined of type size_t will be 64 bits. The sizeof 
keyword gives the amount of storage, in bytes, associated with a variable or a 
type, with the return value of type size_t, but current compiler limits the 
definition of any aggregrate to a maximum size of 4G. 

Known problems in C++ Exception Handling:
-----------------------------------------
  A re-throw in a nested try block does not work correctly. 
  The re-throw will call the inner catch handler and then will 
  mistakenly call the outer catch handler twice.  The following 
  is an example of such cases: 
  #include <stdio.h> 
  int i; 
  main() { 
        try { 
              i = 1; 
              try { 
                throw (i); 
              } 
              catch (...) { 
                printf("inner\n"); 
                throw;  // Re-throw in nested try does not work correctly 
              } 
        } 
        catch (...) { 
              printf("outer\n"); 
       } 
  } 
    
  The use of setjmp/longjmp in presence of C++ EH does not work. 
    
  Duplicate RTTI type descriptors are generated when there are multiple 
  try/catch statements in the same file where the declaration to the same 
  pointer-to-member function declaration appears in more than one catch 
  When inner most catch handler catches by value or reference, the re-throw 
  causes an abnormal program termination. The local object  in the inner most 
  catch handler is not destructed. If the inner most catch handler is changed 
  to catch(...), the re-throw will recurse into the inner most catch instead of 
  unwinding to outter most catch. 
  
Structured Exception Handling 
-----------------------------
  Most of SEH works except for a special case as described below: 
  Goto from an inner try to outer try/finally does not work. For example: 
    __try {
        __try {
            goto L;
        }
        __finally {
            printf("In finally 1\n");
        }
L:
        printf ("In try 2\n");
    }
    __finally {
        printf("In finally 2\n");
    }



Intel and Itanium are trademarks or registered trademarks of Intel
Corporation or its subsidiaries in the United States and other countries.

* Other names and brands may be claimed as the property of others.

Copyright 1998-2001, Intel Corporation, All Rights Reserved.

